package com.mhy.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "message传xml相关数据")
@Configuration
@RestController
@RequestMapping("/hello")
public class MessageController {

    private static final String XML_FORMAT_ERROR = "XML格式错误";
    private static final String XML_PROPERTY_ERROR = "XML属性错误";
    private static final String UNKOWN_ERROR = "未知错误";
    private static final String UPDATE_SUCCESS = "更新成功";
    private static final String UPDATE_FAILURE = "更新失败";

    @ApiOperation("添加message相关内容")
    @PostMapping("/test1")
    public String addmessage() {
        return "hello-swagger";
    }

}
